﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PSI.Models.TMS {
    public class TruckCompany {
        [JsonProperty("id")]
        public string Id { get; set; }

        [JsonProperty("name")]
        public string Name { get; set; }

        [JsonProperty("v_owner")]
        public string owner { get; set; }

        [JsonProperty("n_tel")]
        public string tel { get; set; }

        [JsonProperty("n_password")]
        public string password { get; set; }

        [JsonProperty("i_weixinStatus")]
        public int WeixinStatus { get; set; }

    }

    public class Truck {
        [JsonProperty("id")]
        public string Id { get; set; }

        [JsonProperty("parentId")]
        public string ParentId { get; set; }

        [JsonProperty("truckNumber")]
        public string TruckNumber { get; set; }

        [JsonProperty("driver")]
        public string Driver { get; set; }

        [JsonProperty("driverTel")]
        public string DriverTel { get; set; }

        [JsonProperty("truckCompany")]
        public string TruckCompany { get; set; }

        /// <summary>
        /// 是否发布微信 0默认 1发布 2不发布 3是已预约
        /// </summary>
        [JsonProperty("i_Isweixin")]
        public IsWXStatus isweixin { get; set; }
    }

    public enum IsWXStatus
    {  
       //默认
       defaults=0,
       //发布
       release=1,
        //不发布
       notrelease=2,
        //预约完成
       complete=3
    }
}